package com.bemes.ecmn.model;

public class ECMNMaxAggregator extends ECMNAggregator {

	@Override
	public int getAmountOfEquipment() {
		int numOfEq = 0;
		int amountOfEachCon;
		
		for(ECMNConnector con : m_connectors)
		{
			amountOfEachCon = con.getAmountOfEquipment();
			if(numOfEq < amountOfEachCon)
			{
				numOfEq = amountOfEachCon;
			}
		}
		
		return numOfEq;
	}
}
